package stu.kurs.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "category")
public class Category extends DomainObject{
	
	
	private static final long serialVersionUID = -968475875878283277L;
	
	
	@Column(name = "name", nullable = false, unique = true)
	private String name;
    
	

	@Column(name = "description", nullable = false)
	private String description;
	
	public Category(){
		super();
	}

	public Category(String name, String description) {
		super();
		this.name = name;
		this.description = description;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
}